package life.system.auth.feign;



import life.system.common.dto.MemberResponseVo;
import life.system.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("Member")
public interface MemberFeignService {

    @RequestMapping("/member/member/getMemberByOpenId")
    R getMemberByOpenId(@RequestParam("openId") String openId);

    @RequestMapping("/member/member/save")
    void save(@RequestBody MemberResponseVo wechatUserDTO);

    @RequestMapping("/member/member/updateByOpenId")
    void updateByOpenId(@RequestBody MemberResponseVo wechatUserDTO);
}
